home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
ExceptionHandler-C-src
/
ExceptionHandler.abs
next >
Wrap
Internet Message Format
|
1994-03-31
|
2KB
Date: Fri, 30 Nov 1990 18:24 EST
From: "R. Mark Fleming" <FLEMINGM@qucdn.queensu.ca>
Subject: Exception Handler
ExceptionHandler.sit is a set of routine to enable Think C users to
compile and uses Apple's sample code that requires the exception handler
for MPW pascal or MPW C (UFailure). I took apple's MPW routines and
hacked a set of routine to emulate Apple's code (uses the same C structure,
and interface, but the internal are slightly different).
It seems to work, but I have not tested it very much! I used it to compile
Get Zone List sample code (Think C version included!).
eg.
# Apple Macintosh Developer Technical Support
#
# AppleTalk GetZoneList Sample Application
#
# GetZoneList
#
# GetZoneList.c - C Source
#
# Copyright ? 1989 Apple Computer, Inc.
# All rights reserved.
#
# Versions: 1.0 11/88
# 1.1 10/89
#
# Components: GetZoneList.p October 1, 1989
# GetZoneList.c October 1, 1989
# GetZoneList.r October 1, 1989
# PGetZoneList.make October 1, 1989
# CGetZoneList.make October 1, 1989
#
# Requirements:
# UFailure.p November 1, 1988
# UFailure.inc1.p November 1, 1988
# UFailure.a November 1, 1988
#
# GetZoneList is a sample application that uses
# AppleTalk ATP and ZIP to obtain a list of zones
# on an AppleTalk internet.
#
# GetZoneList also demonstrates using a signal, or
# failure-catching mechanism to recover from error
# situations.